package com.vanysoft.business.sys.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.vanysoft.framework.config.database.BaseEntity;

import java.util.List;

/**
 * 组织机构
 *
 * @author qi_ma
 */


@TableName("SYS_ORG")
public class Org extends BaseEntity<Org> {
    private static final long serialVersionUID = 2437288950886557464L;
    private String code;
    private String parentCode;
    private String orgName;
    private String isEnable;
    private Integer orderNumber;
    @TableField(exist = false)
    private List<Org> children;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(String isEnable) {
        this.isEnable = isEnable;
    }

    public Integer getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(Integer orderNumber) {
        this.orderNumber = orderNumber;
    }

    public List<Org> getChildren() {
        return children;
    }

    public void setChildren(List<Org> children) {
        this.children = children;
    }
}
